Socket Object Methods
Socket objects have the following methods. Except for makefile() these correspond to system calls applicable to sockets.
Note that there are no methods read() or write(); use recv() and send() without flags argument instead.